package edu.sctu.practice.class02.lvchang.test08;

/**
 * Created by Administrator on 2015/10/10.
 */
public class Truck extends Vehicles {
    public Truck(String brand, String color) {
        super(brand, color);
    }

    public float load = 2;

    public void showTruck() {
        System.out.println("brand:" + brand + " " + "color:" + color);

    }

    public static void main(String[] args) {
        Truck truck = new Truck("大众", "蓝色");
        truck.showTruck();
        System.out.println("载重:" + truck.load + "顿");
    }

}
